home *** CD-ROM | disk | FTP | other *** search
- The library system
- ==================
-
- It's a sort of dynamically-loaded library system. It may not be wonderfully
- efficient, but its intended application (Internet software installation and
- configuration) doesn't need to be.
-
- [Substitute 'foo' with the real name of a library module]
-
- Routines provided:
- PROClibrary(lib$)
- FNlibp(lib$)
-
- Naming
- ------
-
- All functions, procedures and non-local variables should begin with "foo_" or
- "_foo_" (the convention is that private functions etc. have the initial
- underscore, though I haven't always followed this in the case of variables).
-
- Loading
- -------
-
- Call PROClibrary("foo") to ensure that library foo is loaded. This can be
- done at any time, not just at initialiation. If a library is already loaded
- then nothing further is done. Library files are located from the path$
- specified in the initial call to PROCcore_init(path$).
-
- Testing presence of library
- ---------------------------
-
- To test if a library foo is loaded, call the function FNlibp("foo").
-
- Initialisation
- --------------
-
- A library module 'foo' must provide an initialisation function FNfoo_init
- which is called when the library is first loaded. This may be a suitable
- place to initialise variables and to load other libraries needed by the
- module. The return value of the function is ignored.
-